<template>
  <div class="menu">
      <slot></slot>
  </div>
</template>

<script>
export default {
    name:'DropdownMenu',
    mounted() {
        this.$children.forEach((item,index)=>{
            item.index=index
        })
    },
}
</script>

<style lang="scss" scoped>
.menu{
    background: #fff;
    a{
        display: block;
        font-size: $font-size-m;
    }
}
</style>